package leetcode.code292;

/**
 * 递归超时
 *
 * @author CaoYu
 * @date 2021年9月18日
 * @description
 */
public class Solution1 extends Solution292 {

	@Override
	public boolean canWinNim(int n) {
		if (n <= 3 || !canWinNim(n - 1) || !canWinNim(n - 2) || !canWinNim(n - 3))
			return true;
		return false;
	}

	public static void main(String[] args) {
		Solution1 so = new Solution1();
		so.debug1();
		so.debug2();
		so.debug3();
		so.debug4();

	}

}
